/*发布阶段需要用到的babel插件*/
const prodPlugins=[];
if(process.env.NODE_ENV === 'production'){
//  处于产品发布模式
  prodPlugins.push(["transform-remove-console", { "exclude": [ "error", "warn"] }]);
}

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  "plugins": [
    "transform-remove-console",
    ["component", {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ],"@babel/plugin-syntax-dynamic-import"
  ]
}
